﻿<UserControl x:Class="Mosaic.Controls.ToolbarItem"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             RenderTransformOrigin="0.5,0.5" Margin="5,10,5,10"
             MouseLeftButtonDown="UserControlMouseLeftButtonDown" MouseLeftButtonUp="UserControlMouseLeftButtonUp" MouseLeave="UserControlMouseLeave">
    <UserControl.Resources>
        <Storyboard x:Key="FadeInAnim" Completed="StoryboardCompleted">
            <DoubleAnimation Storyboard.TargetName="Translation" Storyboard.TargetProperty="X" From="100" To="0" Duration="0:0:0.3" AccelerationRatio="0.3" DecelerationRatio="0.3" FillBehavior="Stop"/>
        </Storyboard>
    </UserControl.Resources>
    <UserControl.RenderTransform>
        <TranslateTransform x:Name="Translation"/>
    </UserControl.RenderTransform>
    <DockPanel>
        <TextBlock Name="TitleTextBlock" DockPanel.Dock="Bottom" Foreground="White" FontSize="12" HorizontalAlignment="Center" TextAlignment="Center" Margin="5,5,5,0" TextWrapping="Wrap"/>
        <Image Name="IconImage" Width="38" HorizontalAlignment="Center" RenderOptions.BitmapScalingMode="HighQuality"/>
    </DockPanel>
</UserControl>
